//
//  YXGLContext.h
//  MiaoPaiVideoKitSample
//
//  Created by Makarov on 2018/1/12.
//  Copyright © 2018年 Makarov. All rights reserved.
//

#import <OpenGLES/ES3/gl.h>
#import <OpenGLES/ES3/glext.h>
#import <OpenGLES/EAGL.h>

@interface YXGLContext : NSObject

@property (nonatomic, readonly) EAGLContext *context;

- (id)initWithAPI:(EAGLRenderingAPI)API;
- (id)initWithAPI:(EAGLRenderingAPI)API sharegroup:(EAGLSharegroup *)sharegroup;

- (void)runSyncInContextQueue:(void (^)(void))block;
- (void)runAsyncInContextQueue:(void (^)(void))block;

- (void)bind;

@end
